﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooHRPRuntimeHCameraManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.HRP.Runtime.HCameraManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 4, 1, 1);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SwitchBaseCamera", _m_SwitchBaseCamera);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisableBaseCamera", _m_DisableBaseCamera);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveOverlayCamera", _m_RemoveOverlayCamera);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddOverlayCamera", _m_AddOverlayCamera);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "qualityListenerMonos", _g_get_qualityListenerMonos);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "qualityListenerMonos", _s_set_qualityListenerMonos);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 11, 0, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "GetInstance", _m_GetInstance_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "EnableCamera", _m_EnableCamera_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "DisableCamera", _m_DisableCamera_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "ChangeCameraType", _m_ChangeCameraType_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "BeginBlackFade", _m_BeginBlackFade_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "EndBlackFade", _m_EndBlackFade_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBaseCamera", _m_GetBaseCamera_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBaseCameraAdditionalData", _m_GetBaseCameraAdditionalData_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSpareCamera", _m_GetSpareCamera_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCameraStack", _m_GetCameraStack_xlua_st_);
            
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.HRP.Runtime.HCameraManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.HRP.Runtime.HCameraManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.HRP.Runtime.HCameraManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.HRP.Runtime.HCameraManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetInstance_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = Yoozoo.HRP.Runtime.HCameraManager.GetInstance(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_EnableCamera_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    Yoozoo.HRP.Runtime.HCamera _camera = (Yoozoo.HRP.Runtime.HCamera)translator.GetObject(L, 1, typeof(Yoozoo.HRP.Runtime.HCamera));
                    
                    Yoozoo.HRP.Runtime.HCameraManager.EnableCamera( _camera );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DisableCamera_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    Yoozoo.HRP.Runtime.HCamera _camera = (Yoozoo.HRP.Runtime.HCamera)translator.GetObject(L, 1, typeof(Yoozoo.HRP.Runtime.HCamera));
                    
                    Yoozoo.HRP.Runtime.HCameraManager.DisableCamera( _camera );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ChangeCameraType_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    Yoozoo.HRP.Runtime.HCamera _hCamera = (Yoozoo.HRP.Runtime.HCamera)translator.GetObject(L, 1, typeof(Yoozoo.HRP.Runtime.HCamera));
                    UnityEngine.Rendering.Universal.CameraRenderType _renderType;translator.Get(L, 2, out _renderType);
                    
                    Yoozoo.HRP.Runtime.HCameraManager.ChangeCameraType( _hCamera, _renderType );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_BeginBlackFade_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<System.Action>(L, 3)) 
                {
                    float _endAlpha = (float)LuaAPI.lua_tonumber(L, 1);
                    float _fadeTime = (float)LuaAPI.lua_tonumber(L, 2);
                    System.Action _callBack = translator.GetDelegate<System.Action>(L, 3);
                    
                    Yoozoo.HRP.Runtime.HCameraManager.BeginBlackFade( _endAlpha, _fadeTime, _callBack );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    float _endAlpha = (float)LuaAPI.lua_tonumber(L, 1);
                    float _fadeTime = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    Yoozoo.HRP.Runtime.HCameraManager.BeginBlackFade( _endAlpha, _fadeTime );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<System.Action>(L, 4)) 
                {
                    float _startAlpha = (float)LuaAPI.lua_tonumber(L, 1);
                    float _endAlpha = (float)LuaAPI.lua_tonumber(L, 2);
                    float _fadeTime = (float)LuaAPI.lua_tonumber(L, 3);
                    System.Action _callBack = translator.GetDelegate<System.Action>(L, 4);
                    
                    Yoozoo.HRP.Runtime.HCameraManager.BeginBlackFade( _startAlpha, _endAlpha, _fadeTime, _callBack );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    float _startAlpha = (float)LuaAPI.lua_tonumber(L, 1);
                    float _endAlpha = (float)LuaAPI.lua_tonumber(L, 2);
                    float _fadeTime = (float)LuaAPI.lua_tonumber(L, 3);
                    
                    Yoozoo.HRP.Runtime.HCameraManager.BeginBlackFade( _startAlpha, _endAlpha, _fadeTime );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.HRP.Runtime.HCameraManager.BeginBlackFade!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_EndBlackFade_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.HRP.Runtime.HCameraManager.EndBlackFade(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBaseCamera_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = Yoozoo.HRP.Runtime.HCameraManager.GetBaseCamera(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBaseCameraAdditionalData_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = Yoozoo.HRP.Runtime.HCameraManager.GetBaseCameraAdditionalData(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetSpareCamera_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = Yoozoo.HRP.Runtime.HCameraManager.GetSpareCamera(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetCameraStack_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    
                        var gen_ret = Yoozoo.HRP.Runtime.HCameraManager.GetCameraStack(  );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SwitchBaseCamera(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.HRP.Runtime.HCameraManager gen_to_be_invoked = (Yoozoo.HRP.Runtime.HCameraManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.HRP.Runtime.HCamera _cam = (Yoozoo.HRP.Runtime.HCamera)translator.GetObject(L, 2, typeof(Yoozoo.HRP.Runtime.HCamera));
                    
                    gen_to_be_invoked.SwitchBaseCamera( _cam );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DisableBaseCamera(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.HRP.Runtime.HCameraManager gen_to_be_invoked = (Yoozoo.HRP.Runtime.HCameraManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.HRP.Runtime.HCamera _cam = (Yoozoo.HRP.Runtime.HCamera)translator.GetObject(L, 2, typeof(Yoozoo.HRP.Runtime.HCamera));
                    
                    gen_to_be_invoked.DisableBaseCamera( _cam );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveOverlayCamera(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.HRP.Runtime.HCameraManager gen_to_be_invoked = (Yoozoo.HRP.Runtime.HCameraManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.HRP.Runtime.HCamera _overlayCamera = (Yoozoo.HRP.Runtime.HCamera)translator.GetObject(L, 2, typeof(Yoozoo.HRP.Runtime.HCamera));
                    
                    gen_to_be_invoked.RemoveOverlayCamera( _overlayCamera );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddOverlayCamera(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.HRP.Runtime.HCameraManager gen_to_be_invoked = (Yoozoo.HRP.Runtime.HCameraManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.HRP.Runtime.HCamera _overlayCamera = (Yoozoo.HRP.Runtime.HCamera)translator.GetObject(L, 2, typeof(Yoozoo.HRP.Runtime.HCamera));
                    
                    gen_to_be_invoked.AddOverlayCamera( _overlayCamera );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_qualityListenerMonos(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.HRP.Runtime.HCameraManager gen_to_be_invoked = (Yoozoo.HRP.Runtime.HCameraManager)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.qualityListenerMonos);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_qualityListenerMonos(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.HRP.Runtime.HCameraManager gen_to_be_invoked = (Yoozoo.HRP.Runtime.HCameraManager)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.qualityListenerMonos = (System.Collections.Generic.List<Yoozoo.Core.Common.QualityListenerMono>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<Yoozoo.Core.Common.QualityListenerMono>));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
